/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.base.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.dian.common.entity.BaseEntity;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import com.dian.common.validator.group.Group;
import org.hibernate.validator.constraints.Length;
/**
 * 仓库信息
 *
 * @author Jinag Run
 * @email 1685269193qq.com
 * @date 2019-05-23 09:30:44
 */
@Data
@TableName("base_warehouse")
public class WarehouseEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

    /**
	 * 仓库编码
	 */
    @NotBlank(message="仓库编码不能为空")
    @Length(max=20, groups={Group.class}, message="仓库编码长度不能超过20个字符")
    private String warehouseCode;
    /**
	 * 仓库名称
	 */
    @NotBlank(message="仓库名称不能为空")
    @Length(max=60, groups={Group.class}, message="仓库名称长度不能超过60个字符")
    private String warehouseName;
    /**
	 * 是否有效:0-禁用-disable;1-启用-normal
	 */
    @NotBlank(message="是否有效不能为空")
    private Integer isValid;
}
